<?php
session_start();

//include($_SERVER['DOCUMENT_ROOT'].'/mpd/function/spm/paging.php');
include ('../../config/config.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Daftar Pekerjaan</title>

<link href="../../style/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" href="../../style/font-awesome.css"> 
<link rel="stylesheet" href="../../style/jquery-ui.css"> 
<link rel="stylesheet" href="../../style/rateit.css">
<link rel="stylesheet" href="../../style/bootstrap-datetimepicker.min.css">
<link rel="stylesheet" href="../../style/jquery.gritter.css">
<link rel="stylesheet" href="../../style/jquery.cleditor.css"> 
<link rel="stylesheet" href="../../style/bootstrap-toggle-buttons.css">
<link href="../../style/style.css" rel="stylesheet">
<link href="../../style/widgets.css" rel="stylesheet">   
<link href="../../style/bootstrap-responsive.css" rel="stylesheet">
<link rel="shortcut icon" href="img/favicon/favicon.png" />

</head>

<body>
<!--	-->
<?
include ("header.php")
?>
<div class="content">
<?
include ("sidebar.php")
?>
  	<div class="mainbar">
     
	    <div class="page-head">
        	<div class="pull-right">
          	<a href="tambahpekerjaan.php">Tambah Pekerjaan</a>
        	</div>
	        <div class="clearfix"></div>
	    </div>

	  <!-- Matter -->
	    <div class="matter">
        <div class="container-fluid">
          <div class="row-fluid">
            <div class="span12">
            	
                <div class="widget wviolet">
                <div class="widget-head">
                  <div class="pull-left">Daftar Pekerjaan</div>
                  <div class="widget-icons pull-right">
                    <a href="#" class="wminimize"><i class="icon-chevron-up"></i></a> 
                    <a href="#" class="wclose"><i class="icon-remove"></i></a>
                  </div>
                  <div class="clearfix"></div>
                </div>

                  <div class="widget-content">
					
                    <table class="table  table-bordered ">
                      <thead>
                        <tr>
                          <th>Nama Pekerjaan</th>
                          <th>PIC</th>
						  <th>Due Date</th>
                          <th>Status</th>
						  <th>Komentar</th>
                          </tr>
                      </thead>
                      <tbody>
							<?
							include($_SERVER['DOCUMENT_ROOT'].'/mpd/function/spm/reviewdetail.php');
							//$q = mysql_query("SELECT p.NAMA_PEKERJAAN as ('kerja'), b.NAMA as ('nama') FROM biodata as b INNER JOIN pekerjaan as p ON b.NIP=p.NIP WHERE b.NIP='".$nip."' AND p.ID_STATUS_PEKERJAAN=1");
							//var_dump($_SESSION['NIP']);
							//include ('../../function/reviewdetail.php');
								//$q = mysql_query("SELECT p.NAMA_PEKERJAAN AS kerja, b.NAMA AS nama FROM biodata as b INNER JOIN pekerjaan as p ON b.NIP=p.NIP WHERE b.NIP='".$nip."' AND p.ID_STATUS_PEKERJAAN=1");
								while($row = mysql_fetch_array($q)){
								echo "<tr>";
								$id = $row['id'];
								echo "<td><a href='revdetailpekerjaan.php?id=".$id."'>".$row['kerja']."</a></td>";
								echo "<td>".$row['nama']."</a></td>";
								echo "<td>".$row['due']."</a></td>";
								echo "<td>".$row['status']."</a></td>";
								if($row['komen'] != NULL){
								echo "<td>".$row['komen']."</td>";
								}else{
								echo "<td >-</td>";
								}
								
								echo "</tr>";
								}
								echo "</tbody>";  
								echo "</table>";									
							?>
                  </div>
                </div>


              </div>

          </div>

          <div class="row-fluid">



          </div>

        </div>
		  </div>

		<!-- Matter ends -->

    </div>

   <!-- Mainbar ends -->	    	
   <div class="clearfix"></div>

</div>
<!--	-->
<script src="../../js/jquery.js"></script> <!-- jQuery -->
<script src="../../js/bootstrap.js"></script> <!-- Bootstrap -->
<script src="../../js/jquery-ui-1.10.2.custom.min.js"></script> <!-- jQuery UI -->
<script src="../../js/bootstrap-datepicker.js"></script>
<script>$('#dp2').datepicker();</script>
<script src="../../js/excanvas.min.js"></script>
<script src="../../js/jquery.flot.js"></script>
<script src="../../js/jquery.flot.resize.js"></script>
<script src="../../js/jquery.flot.stack.js"></script>
<script src="../../js/jquery.gritter.min.js"></script> <!-- jQuery Gritter -->
<script src="../../js/sparklines.js"></script> <!-- Sparklines -->
<script src="../../js/jquery.toggle.buttons.js"></script> <!-- Bootstrap Toggle -->
<script src="../../js/filter.js"></script> <!-- Filter for support page -->
<script src="../../js/custom.js"></script> <!-- Custom codes -->

</body>
</html>
